package com.balakitbbs.service;

import org.springframework.beans.factory.annotation.Autowired; 
import org.springframework.stereotype.Service;                 
import com.balakitbbs.page.SearchPageUtil;     
import java.util.*;     
import com.balakitbbs.entity.Bala_appversion;
import com.balakitbbs.dao.Bala_appversionDaoIF;
   /**
    * bala_appversion Service类
    */ 
@Service
public class Bala_appversionService{
@Autowired
private Bala_appversionDaoIF dao;
	public void addBala_appversion(Bala_appversion bala_appversion){
		dao.addBala_appversion(bala_appversion);
	}

	public void delBala_appversion(String id){
		dao.delBala_appversion(id);
	}

	public void delBala_appversionTrue(String id){
		dao.delBala_appversionTrue(id);
	}

	public void updateBala_appversion(Bala_appversion bala_appversion){
		dao.updateBala_appversion(bala_appversion);
	}

	public Bala_appversion selectBala_appversionById(String id){
		return dao.selectBala_appversionByID(id);
	}

	public int selectBala_appversionCount(){
		return dao.selectBala_appversionCount();
	}

	public int selectBala_appversionCountAll(){
		return dao.selectBala_appversionCountAll();
	}

	public List<Bala_appversion> selectBala_appversionsByPage(SearchPageUtil spu){
		return dao.selectBala_appversionsByPage(spu);
	}

	public int selectBala_appversionsByPOJOCount(Bala_appversion bala_appversion){
		return dao.selectBala_appversionsByPOJOCount(bala_appversion);
	}

	public List<Bala_appversion> selectBala_appversionsByPOJO(Bala_appversion bala_appversion){
		return dao.selectBala_appversionsByPOJO(bala_appversion);
	}

	public List<Bala_appversion> selectBala_appversionsByPojoPage(SearchPageUtil spu,Bala_appversion bala_appversion){
		Map map = new HashMap();
		map.put("spu",spu);
		map.put("pojo",bala_appversion);
		return dao.selectBala_appversionsByPojoPage(map);
	}

}

